package com.zmj.sy.mom.srv.aps.bean.entity.nest;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Comment("套料-推送零件计划")
@Getter
@Setter
@TableName("tb_nest_push_plan")
public class NestPushPlan extends BaseEntity {

    @Comment("日志ID")
    private Integer logApiId;

    @Comment("父级编号")//父PLMID
    private String componentCode;

    @Comment("父级名称")
    private String componentName;

    @Comment("需求日期")
    private LocalDateTime needDateTime;

    @Comment("下料计划单号")//计划单号（唯一标识）
    private Integer planId;

    @Comment("PLMID")
    private String plmId;

    @Comment("零件名称")
    private String materName;

    @Comment("零件类型") //1：板材   0：型材
    private Integer partType;

    @Comment("计划套料数量")//包下面套料数量
    private BigDecimal planAmount;

    @Comment("包号")  //生产加工批次号，若没有值 默认传1 |工单包号
    private String pkgCode;

    @Comment("计划包ID")
    private Integer apsOrderId;

    @Comment("产品编号")
    private String productCode;

    @Comment("版本标识 1 预套料 2 正式套料")
    private Integer type;

    @Comment("推送状态 1 新增待推送 2 修改待推送 3 删除待推送 4 推送成功 5 推送失败 6未知")
    private Integer status;

    @Comment("错误消息")
    private String errorMsg;

    @Comment("套料完成数量")
    private BigDecimal planFinishAmount;

    @Comment("订单ID")
    private Integer orderId;

    @Comment("零件唯一号(零件号#图纸版本号)")
    private String uniMaterCode;

    @Comment("版本号，默认为1")
    private Long versionNum;

    @Comment("推送方：1 海克斯康 2 兰特克 ")
    private Integer pushType;

    @Comment("计划材质")
    private String texture;

    @Comment("计划厚度")
    private String thickness;

    @Comment("虚拟钢板长（mm）")
    private Integer plateLength;

    @Comment("虚拟钢板宽（mm）")
    private Integer plateWidth;

    @Comment("MES订单号")
    private String mesOrderCode;

    @Comment("工单号")
    private String mesPkgCode;

    @Comment("路径")
    private String path;

    @Comment("扩展字段")
    private String ext;

}
